package com.enation.app.shop.core.member.service.impl;

import com.enation.app.base.core.model.Member;
import com.enation.app.shop.core.member.service.IMemberManager;
import com.enation.framework.database.IDaoSupport;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class IMemberManagerMapper implements IMemberManager {
    @Autowired
    private IDaoSupport iDaoSupport;
    @Override
    public Member getMemberAddress(Integer user_id) {
        String sql = "select s.province_id,s.city_id,s.region_id from es_member s where s.member_id=?";
        return iDaoSupport.queryForList(sql,Member.class,user_id).get(0);
    }
}
